<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>教你用IIS架设web服务器 - Feng&#39;s Blog - 大灰鼠的博客</title>
  <meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>

<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">


<meta name="author" content="Feng" /><meta name="description" content="1.从安全考虑，首先为您的web服务新建一个用户，并设置密码，笔者设置的密码为123456（后面开设web服务会用到这个密码）。 图（1）建立" /><meta name="keywords" content="feng, 折腾人生, 电脑维修, 手机玩转, 技术心得, 拆机, 网站建设, 快乐悠悠, uu, 悠悠, 博客" />






<meta name="generator" content="Hugo 0.76.5 with theme even" />


<link rel="canonical" href="https://uu126.gitee.io/2012/36.html" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">



<link href="/sass/main.min.c7bc1becf36bcf6a9ebd25d2947e43a2eb745ddb0c9a32b43126fd7fa460c351.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">


<meta property="og:title" content="教你用IIS架设web服务器" />
<meta property="og:description" content="1.从安全考虑，首先为您的web服务新建一个用户，并设置密码，笔者设置的密码为123456（后面开设web服务会用到这个密码）。 图（1）建立" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://uu126.gitee.io/2012/36.html" />
<meta property="article:published_time" content="2012-12-07T22:28:52+00:00" />
<meta property="article:modified_time" content="2012-12-07T22:28:52+00:00" />
<meta itemprop="name" content="教你用IIS架设web服务器">
<meta itemprop="description" content="1.从安全考虑，首先为您的web服务新建一个用户，并设置密码，笔者设置的密码为123456（后面开设web服务会用到这个密码）。 图（1）建立">
<meta itemprop="datePublished" content="2012-12-07T22:28:52+00:00" />
<meta itemprop="dateModified" content="2012-12-07T22:28:52+00:00" />
<meta itemprop="wordCount" content="745">



<meta itemprop="keywords" content="" />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="教你用IIS架设web服务器"/>
<meta name="twitter:description" content="1.从安全考虑，首先为您的web服务新建一个用户，并设置密码，笔者设置的密码为123456（后面开设web服务会用到这个密码）。 图（1）建立"/>

<!--[if lte IE 9]>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->

<!--[if lt IE 9]>
  <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->

</head>
<body>
  <div id="mobile-navbar" class="mobile-navbar">
  <div class="mobile-header-logo">
    <a href="/" class="logo">Feng&#39;s Blog</a>
  </div>
  <div class="mobile-navbar-icon">
    <span></span>
    <span></span>
    <span></span>
  </div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
  <ul class="mobile-menu-list">
    <a href="/">
        <li class="mobile-menu-item">Home</li>
      </a><a href="/post/">
        <li class="mobile-menu-item">Archives</li>
      </a><a href="/tags/">
        <li class="mobile-menu-item">Tags</li>
      </a><a href="/links/">
        <li class="mobile-menu-item">Links</li>
      </a><a href="/ly/">
        <li class="mobile-menu-item">Ly</li>
      </a><a href="/about/">
        <li class="mobile-menu-item">About</li>
      </a>
  </ul>
</nav>
  <div class="container" id="mobile-panel">
    <header id="header" class="header">
        <div class="logo-wrapper">
  <a href="/" class="logo">Feng&#39;s Blog</a>
</div>

<nav class="site-navbar">
  <ul id="menu" class="menu">
    <li class="menu-item">
        <a class="menu-item-link" href="/">Home</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/post/">Archives</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/tags/">Tags</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/links/">Links</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/ly/">Ly</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/about/">About</a>
      </li>
  </ul>
</nav>
    </header>

    <main id="main" class="main">
      <div class="content-wrapper">
        <div id="content" class="content">
          <article class="post">
    
    <header class="post-header">
      <h1 class="post-title">教你用IIS架设web服务器</h1>

      <div class="post-meta">
        <span class="post-time"> 2012-12-07 </span>
        <div class="post-category">
            <a href="/categories/%E7%BD%91%E7%AB%99%E5%BB%BA%E8%AE%BE/"> 网站建设 </a>
            </div>
          <span class="more-meta"> 约 745 字 </span>
          <span class="more-meta"> 预计阅读 2 分钟 </span>
        
      </div>
    </header>

    <div class="post-toc" id="post-toc">
  <h2 class="post-toc-title">文章目录</h2>
  <div class="post-toc-content always-active">
    <nav id="TableOfContents"></nav>
  </div>
</div>
    <div class="post-content">
      <p align="left">
  <strong>1.</strong><strong>从安全考虑，首先为您的</strong><strong>web</strong><strong>服务新建一个用户，并设置密码，笔者设置的密码为</strong><strong>123456</strong><strong>（后面开设</strong><strong>web</strong><strong>服务会用到这个密码）。</strong><strong></strong>
</p>
<p align="center">
  　
</p>
<p align="center">
  <img   class="lazyload" data-src="http://www.zgsj.com/vps/IISphoto/1.JPG" src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" onerror="imgError(this)"  alt="" width="506" height="294" />
</p >
<noscript>
  <img src="http://www.zgsj.com/vps/IISphoto/1.JPG" alt="" width="506" height="294" /></p>
</noscript>
<p align="center">
  图（1）建立服务账户
</p>
<p align="left">
  <strong>2.安装完成后</strong><strong>,</strong><strong>我们打开控制面版的</strong><strong>-></strong><strong>管理工具</strong><strong></strong>
</p>
<p align="center">
  <img   class="lazyload" data-src="http://www.zgsj.com/vps/IISphoto/2.JPG" src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" onerror="imgError(this)"  alt="" width="686" height="222" />
</p >
<noscript>
  <img src="http://www.zgsj.com/vps/IISphoto/2.JPG" alt="" width="686" height="222" /></p>
</noscript>
<p align="center">
  　
</p>
<p align="center">
  图（2）IIS服务器
</p>
<p align="center">
  　
</p>
<p align="center">
  　
</p>
<p align="left">
  中国数据的主机租用和VPS默认是装好了IIS的，这就是我们安装好的IIS -> intrnet 服务管理器
</p>
<p align="left">
  <strong>3.打开</strong><strong>web</strong><strong>服务器扩展</strong><strong></strong>
</p>
<p align="center">
  <strong><img   class="lazyload" data-src="http://www.zgsj.com/vps/IISphoto/3.JPG" src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" onerror="imgError(this)"  alt="" width="634" height="270" /></strong>
</p >
<noscript>
  <img src="http://www.zgsj.com/vps/IISphoto/3.JPG" alt="" width="634" height="270" /></strong></p>
</noscript>
<p align="center">
  图（3）打开web服务器扩展
</p>
<p align="left">
  <strong>4.打开</strong><strong>IIS</strong><strong>服务器——》网站</strong><strong></strong>
</p>
<p align="left">
  1）右键点击网站，点属性，选择主目录——》配置——》选项
</p>
<p>勾选上“启用父路径”</p>
<p align="center">
  <img   class="lazyload" data-src="http://www.zgsj.com/vps/IISphoto/4.JPG" src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" onerror="imgError(this)"  alt="" width="382" height="226" />
</p >
<noscript>
  <img src="http://www.zgsj.com/vps/IISphoto/4.JPG" alt="" width="382" height="226" /></p>
</noscript>
<p align="center">
  图（4）启用父路径
</p>
<p align="left">
  2）在文档标签里添加你的默认首页。
</p>
<p align="center">
  <img   class="lazyload" data-src="http://www.zgsj.com/vps/IISphoto/5.JPG" src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" onerror="imgError(this)"  alt="" width="463" height="311" />
</p >
<noscript>
  <img src="http://www.zgsj.com/vps/IISphoto/5.JPG" alt="" width="463" height="311" /></p>
</noscript>
<p align="center">
  图（5）添加默认首页
</p>
<p align="left">
  3）弹出一个网站新建向导，直接下一步。输入你的网站描述，比如您的ftp名。这里输入test
</p>
<p align="center">
  <img   class="lazyload" data-src="http://www.zgsj.com/vps/IISphoto/6.JPG" src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" onerror="imgError(this)"  alt="" width="477" height="365" />
</p >
<noscript>
  <img src="http://www.zgsj.com/vps/IISphoto/6.JPG" alt="" width="477" height="365" /></p>
</noscript>
<p align="center">
  图（6）网站描述
</p>
<p align="left">
  4）点击下一步。
</p>
<p align="center">
  <img   class="lazyload" data-src="http://www.zgsj.com/vps/IISphoto/7.JPG" src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" onerror="imgError(this)"  alt="" width="469" height="353" />
</p >
<noscript>
  <img src="http://www.zgsj.com/vps/IISphoto/7.JPG" alt="" width="469" height="353" /></p>
</noscript>
<p align="center">
  图（7）ip地址端口设置
</p>
<p align="left">
  需要说明的是主机头即是你要绑定的域名，要想绑定多个域名，后面再说，参见第×××步
</p>
<p align="left">
  5）网站主目录设置（即您网站文件的存储根目录）
</p>
<p align="center">
  <img   class="lazyload" data-src="http://www.zgsj.com/vps/IISphoto/8.JPG" src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" onerror="imgError(this)"  alt="" width="479" height="365" />
</p >
<noscript>
  <img src="http://www.zgsj.com/vps/IISphoto/8.JPG" alt="" width="479" height="365" /></p>
</noscript>
<p align="center">
  图（8）网站主目录设置
</p>
<p align="left">
  6）点击下一步勾选上运行脚本和执行
</p>
<p align="center">
  <img   class="lazyload" data-src="http://www.zgsj.com/vps/IISphoto/9.JPG" src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" onerror="imgError(this)"  alt="" width="478" height="366" />
</p >
<noscript>
  <img src="http://www.zgsj.com/vps/IISphoto/9.JPG" alt="" width="478" height="366" /></p>
</noscript>
<p align="center">
  图（9）网站访问权限设置
</p>
<p align="left">
  7）点击下一步，web服务基本架设完成。但是作为服务器，安全性是很重要的。
</p>
<p align="left">
  8）右键点击刚才建立的test网站，选择属性——》目录安全性，在身份验证和访问控制下点击“编辑”——》对匿名访问使用下列Windows用户。
</p>
<p align="center">
  <img   class="lazyload" data-src="http://www.zgsj.com/vps/IISphoto/10.JPG" src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" onerror="imgError(this)"  alt="" width="360" height="207" />
</p >
<noscript>
  <img src="http://www.zgsj.com/vps/IISphoto/10.JPG" alt="" width="360" height="207" /></p>
</noscript>
<p align="center">
  图（10）匿名访问账户设置
</p>
<p align="left">
  点击浏览——》高级——》立即查找，选择本文刚开始建立的test用户，并填入设置的密码123456.
</p>
<p align="center">
  <img   class="lazyload" data-src="http://www.zgsj.com/vps/IISphoto/11.JPG" src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" onerror="imgError(this)"  alt="" width="372" height="285" />
</p >
<noscript>
  <img src="http://www.zgsj.com/vps/IISphoto/11.JPG" alt="" width="372" height="285" /></p>
</noscript>
<p align="center">
  图（11）设置一个安全的匿名访问账户
</p>
<p align="left">
  9）在地“5）”步提到的D:/wwwroot文件夹上也同样加上test用户权限，并删除除了系统和管理员之外的权限。
</p>
<p align="center">
  <img   class="lazyload" data-src="http://www.zgsj.com/vps/IISphoto/12.JPG" src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" onerror="imgError(this)"  alt="" width="371" height="374" />
</p >
<noscript>
  <img src="http://www.zgsj.com/vps/IISphoto/12.JPG" alt="" width="371" height="374" /></p>
</noscript>
<p align="center">
  图（12）设置网站程序安全权限
</p>
<p align="center">
  现在一个安全好用的web服务器就基本建立好了，放入您的程序可以使用了。
</p>
<p align="center">
  <img   class="lazyload" data-src="http://www.zgsj.com/vps/IISphoto/13.JPG" src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" onerror="imgError(this)"  alt="" width="610" height="327" />
</p >
<noscript>
  <img src="http://www.zgsj.com/vps/IISphoto/13.JPG" alt="" width="610" height="327" /></p>
</noscript>
<p align="center">
  图（13）主机开设成功
</p>
    </div>

    <div class="post-copyright">
  <p class="copyright-item">
    <span class="item-title">文章作者</span>
    <span class="item-content">Feng</span>
  </p>
  <p class="copyright-item">
    <span class="item-title">上次更新</span>
    <span class="item-content">
        2012-12-07
        
    </span>
  </p>
  
  
</div>
<div class="post-reward">
  <input type="checkbox" name="reward" id="reward" hidden />
  <label class="reward-button" for="reward">赞赏支持</label>
  <div class="qr-code">
    
    <label class="qr-code-image" for="reward">
        <img class="image" src="https://cdn.uu126.cn/hugo/wechat.png">
        <span>微信打赏</span>
      </label>
    <label class="qr-code-image" for="reward">
        <img class="image" src="https://cdn.uu126.cn/hugo/alipay.png">
        <span>支付宝打赏</span>
      </label>
  </div>
</div><footer class="post-footer">
      
      <nav class="post-nav">
        <a class="prev" href="/2012/37.html">
            <i class="iconfont icon-left"></i>
            <span class="prev-text nav-default">教你用Serv－U架设个人FTP</span>
            <span class="prev-text nav-mobile">上一篇</span>
          </a>
        <a class="next" href="/2012/35.html">
            <span class="next-text nav-default">高危木马专偷隐私 央视曝光“照片大盗”</span>
            <span class="next-text nav-mobile">下一篇</span>
            <i class="iconfont icon-right"></i>
          </a>
      </nav>
    </footer>
  </article>
        </div>
        

  
  <div id="vcomments"></div>
  <script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
  <script src='//unpkg.com/valine/dist/Valine.min.js'></script>
  <script type="text/javascript">
    new Valine({
        el: '#vcomments' ,
        appId: '5sMkTX4FLjetFnfbOhaDTCDJ-9Nh9j0Va',
        appKey: '25KXCqIqAN142RQn4fBrsI87',
        notify:  false ,
        verify:  false ,
        avatar:'mm',
        placeholder: '说点什么吧...',
        visitor:  false 
    });
  </script>

  

      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="social-links">
  <a href="https://uu126.gitee.io/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
</div>

<div class="copyright">
  <span class="copyright-year">  
  Hosted by <a href="https://pages.coding.me" style="font-weight: bold">Coding Pages</a> + <a href="https://cloud.tencent.com/redirect.php?redirect=1005&cps_key=4e78216aea817227ff0c96d93a00fd4b" target="_blank" rel="nofollow">腾讯云 + </a><a href="https://console.upyun.com/register/?invite=S1JeTquHL" target="_blank" rel="nofollow"><span class="with-love"><img src="https://cdn.lancn.cn/images/upyun.png" style="width:45px;vertical-align:middle;" alt="又拍云存储"></span></a>
   </span> 
  <div class="busuanzi-footer">
    <a target="_blank"  href="http://www.beian.miit.gov.cn">浙ICP备11026647号-3</a><span class="post-meta-divider"> | </span><a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=33088102001325"><span class="with-love"><img src="https://cdn.uu126.cn/icon-police.png" style="width:14px;"></span> 浙公网安备33088102001325号</a>
  </div>
  <span class="power-by">
    由 <a class="hexo-link" href="https://gohugo.io">Hugo</a> 强力驱动
  </span>
  <span class="division">|</span>
  <span class="theme-info">
    主题 - 
    <a class="theme-link" href="https://github.com/olOwOlo/hugo-theme-even">Even</a>
  </span>
   

  

  <span class="copyright-year">
    &copy; 
    2012 - 
    2020<span class="heart"><i class="iconfont icon-heart"></i></span><span>Feng</span>
  </span>
</div>

    </footer>

    <div class="back-to-top" id="back-to-top">
      <i class="iconfont icon-up"></i>
    </div>
  </div>
  <script src="/lib/highlight/highlight.pack.js?v=20171001"></script>
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/slideout@1.0.1/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>



<script type="text/javascript" src="/js/main.min.c12618f9a600c40bd024996677e951e64d3487006775aeb22e200c990006c5c7.js"></script>








</body>
</html>
